<?php

return [
    'db' => [
        'master' => [
            'host' => getenv('COMMON_DB_MASTER_HOST'),
            'port' => getenv('COMMON_DB_MASTER_PORT'),
            'dbname' => 'shop',
            'username' => getenv('COMMON_DB_MASTER_USERNAME'),
            'password' => getenv('COMMON_DB_MASTER_PASSWORD'),
            'charset' => 'utf8'
        ],
        'slave' => [
            [
                'host' => getenv('COMMON_DB_MASTER_HOST'),
                'port' => getenv('COMMON_DB_MASTER_PORT'),
                'dbname' => 'shop',
                'username' => getenv('COMMON_DB_MASTER_USERNAME'),
                'password' => getenv('COMMON_DB_MASTER_PASSWORD'),
                'charset' => 'utf8',
            ]
        ]
    ],
    
];
